<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: BaseObject类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="class_base_object-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">BaseObject类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p>场景内物体基类  
 <a href="class_base_object.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_base_object_8h_source.html">BaseObject.h</a>&gt;</code></p>
<div class="dynheader">
类 BaseObject 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_object__inherit__graph.png" border="0" usemap="#a_base_object_inherit__map" alt="Inheritance graph"/></div>
<map name="a_base_object_inherit__map" id="a_base_object_inherit__map">
<area shape="rect" title="场景内物体基类" alt="" coords="603,5,693,32"/>
<area shape="rect" href="class_base_movable_object.html" title="移动物体，用于搭载角色" alt="" coords="166,80,303,107"/>
<area shape="rect" href="class_base_ornament.html" title="装饰品基类" alt="" coords="328,80,437,107"/>
<area shape="rect" href="class_behind_bridge.html" title="后景桥，提供碰撞逻辑但不显示" alt="" coords="461,80,560,107"/>
<area shape="rect" href="class_brick.html" title="砖块" alt="" coords="585,80,637,107"/>
<area shape="rect" href="class_door.html" title="结束门" alt="" coords="661,80,710,107"/>
<area shape="rect" href="class_drop_object.html" title="掉落物" alt="" coords="734,80,821,107"/>
<area shape="rect" href="class_front_bridge.html" title="前景桥，仅产生装饰" alt="" coords="845,80,934,107"/>
<area shape="rect" href="class_ladder.html" title="梯子" alt="" coords="959,80,1020,107"/>
<area shape="rect" href="class_barrel.html" title="酒桶" alt="" coords="5,155,61,181"/>
<area shape="rect" href="class_billboard.html" title="木板" alt="" coords="85,155,157,181"/>
<area shape="rect" href="class_box.html" title="盒子" alt="" coords="181,155,227,181"/>
<area shape="rect" href="class_casket.html" title="箱子" alt="" coords="251,155,314,181"/>
<area shape="rect" href="class_grave_stone.html" title="墓碑" alt="" coords="338,155,427,181"/>
<area shape="rect" href="class_plant.html" title="植物" alt="" coords="451,155,503,181"/>
<area shape="rect" href="class_pot.html" title="花盆" alt="" coords="528,155,571,181"/>
<area shape="rect" href="class_skeleton.html" title="骷髅" alt="" coords="595,155,669,181"/>
<area shape="rect" href="class_stone.html" title="石头" alt="" coords="693,155,749,181"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<div class="dynheader">
BaseObject 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_object__coll__graph.png" border="0" usemap="#a_base_object_coll__map" alt="Collaboration graph"/></div>
<map name="a_base_object_coll__map" id="a_base_object_coll__map">
<area shape="rect" title="场景内物体基类" alt="" coords="5,95,96,121"/>
<area shape="rect" href="class_point.html" title="二维点" alt="" coords="25,5,77,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a7a8f26c8117331663dbe5918c72db344"><td class="memItemLeft" align="right" valign="top"><a id="a7a8f26c8117331663dbe5918c72db344" name="a7a8f26c8117331663dbe5918c72db344"></a>
typedef std::pair&lt; <a class="el" href="class_point.html">Point</a>, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PointAndTime</b></td></tr>
<tr class="separator:a7a8f26c8117331663dbe5918c72db344"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7e176d1d960045fc200077eca43965e5"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a7e176d1d960045fc200077eca43965e5">getPos</a> () const</td></tr>
<tr class="memdesc:a7e176d1d960045fc200077eca43965e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体位置  <a href="class_base_object.html#a7e176d1d960045fc200077eca43965e5">更多...</a><br /></td></tr>
<tr class="separator:a7e176d1d960045fc200077eca43965e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85204616ebfb2ba858abde26f203d359"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a85204616ebfb2ba858abde26f203d359">setPos</a> (const <a class="el" href="class_point.html">Point</a> &amp;pos_)</td></tr>
<tr class="separator:a85204616ebfb2ba858abde26f203d359"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35b5ede527bbd73c579d8bdbfb90bee9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a35b5ede527bbd73c579d8bdbfb90bee9">isFixed</a> () const</td></tr>
<tr class="memdesc:a35b5ede527bbd73c579d8bdbfb90bee9"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体是否固定  <a href="class_base_object.html#a35b5ede527bbd73c579d8bdbfb90bee9">更多...</a><br /></td></tr>
<tr class="separator:a35b5ede527bbd73c579d8bdbfb90bee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1baacb32f3f4e0481a46266fc3dfbbfc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a1baacb32f3f4e0481a46266fc3dfbbfc">setFixed</a> (bool fixed_)</td></tr>
<tr class="memdesc:a1baacb32f3f4e0481a46266fc3dfbbfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体是否固定  <a href="class_base_object.html#a1baacb32f3f4e0481a46266fc3dfbbfc">更多...</a><br /></td></tr>
<tr class="separator:a1baacb32f3f4e0481a46266fc3dfbbfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6b51f6eda42de15bbcf9b0c4fb1db51"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#aa6b51f6eda42de15bbcf9b0c4fb1db51">getWidth</a> () const</td></tr>
<tr class="memdesc:aa6b51f6eda42de15bbcf9b0c4fb1db51"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体宽度，单位:像素  <a href="class_base_object.html#aa6b51f6eda42de15bbcf9b0c4fb1db51">更多...</a><br /></td></tr>
<tr class="separator:aa6b51f6eda42de15bbcf9b0c4fb1db51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a47258298e3f5d0c63a516c11249d5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a3a47258298e3f5d0c63a516c11249d5e">setWidth</a> (double width_)</td></tr>
<tr class="memdesc:a3a47258298e3f5d0c63a516c11249d5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体宽度，单位：像素  <a href="class_base_object.html#a3a47258298e3f5d0c63a516c11249d5e">更多...</a><br /></td></tr>
<tr class="separator:a3a47258298e3f5d0c63a516c11249d5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90bc7e758fa62359c6e0784415bf3095"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a90bc7e758fa62359c6e0784415bf3095">getHeight</a> () const</td></tr>
<tr class="memdesc:a90bc7e758fa62359c6e0784415bf3095"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体高度，单位：像素  <a href="class_base_object.html#a90bc7e758fa62359c6e0784415bf3095">更多...</a><br /></td></tr>
<tr class="separator:a90bc7e758fa62359c6e0784415bf3095"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad748705eb9028d3f81c76828d072ac6d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#ad748705eb9028d3f81c76828d072ac6d">setHeight</a> (double height_)</td></tr>
<tr class="memdesc:ad748705eb9028d3f81c76828d072ac6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体高度，单位：像素  <a href="class_base_object.html#ad748705eb9028d3f81c76828d072ac6d">更多...</a><br /></td></tr>
<tr class="separator:ad748705eb9028d3f81c76828d072ac6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae27aa8d7730816c3b92844fa52e4a002"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#ae27aa8d7730816c3b92844fa52e4a002">isCanGoThrough</a> () const</td></tr>
<tr class="memdesc:ae27aa8d7730816c3b92844fa52e4a002"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体是否可以穿过  <a href="class_base_object.html#ae27aa8d7730816c3b92844fa52e4a002">更多...</a><br /></td></tr>
<tr class="separator:ae27aa8d7730816c3b92844fa52e4a002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d5f8d904178f4af4e3ded503d364f94"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a5d5f8d904178f4af4e3ded503d364f94">setCanGoThrough</a> (bool canGoThrough)</td></tr>
<tr class="memdesc:a5d5f8d904178f4af4e3ded503d364f94"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体是否可以穿过  <a href="class_base_object.html#a5d5f8d904178f4af4e3ded503d364f94">更多...</a><br /></td></tr>
<tr class="separator:a5d5f8d904178f4af4e3ded503d364f94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11bb79be3c9bbe90709cbdcffa75d91e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a11bb79be3c9bbe90709cbdcffa75d91e">isCanClimb</a> () const</td></tr>
<tr class="memdesc:a11bb79be3c9bbe90709cbdcffa75d91e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体是否可以攀爬，此属性必须在可以穿过时启用才有效  <a href="class_base_object.html#a11bb79be3c9bbe90709cbdcffa75d91e">更多...</a><br /></td></tr>
<tr class="separator:a11bb79be3c9bbe90709cbdcffa75d91e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8782191bbcc265334390051b3efacbe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#ad8782191bbcc265334390051b3efacbe">setCanClimb</a> (bool canClimb)</td></tr>
<tr class="memdesc:ad8782191bbcc265334390051b3efacbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体是否可以攀爬，此属性必须在可以穿过时启用才有效  <a href="class_base_object.html#ad8782191bbcc265334390051b3efacbe">更多...</a><br /></td></tr>
<tr class="separator:ad8782191bbcc265334390051b3efacbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b678f52f9f6e06c237a22715fa4331e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a0b678f52f9f6e06c237a22715fa4331e">getMoveSpeed</a> () const</td></tr>
<tr class="memdesc:a0b678f52f9f6e06c237a22715fa4331e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体的移动速度  <a href="class_base_object.html#a0b678f52f9f6e06c237a22715fa4331e">更多...</a><br /></td></tr>
<tr class="separator:a0b678f52f9f6e06c237a22715fa4331e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a086ae2aee1a4243e68db93ff801018ca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a086ae2aee1a4243e68db93ff801018ca">setMoveSpeed</a> (double moveSpeed)</td></tr>
<tr class="memdesc:a086ae2aee1a4243e68db93ff801018ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体的移动速度  <a href="class_base_object.html#a086ae2aee1a4243e68db93ff801018ca">更多...</a><br /></td></tr>
<tr class="separator:a086ae2aee1a4243e68db93ff801018ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39c190a92cdff0b0a0f02b0cb3ee7235"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a39c190a92cdff0b0a0f02b0cb3ee7235">isActorOn</a> (const <a class="el" href="class_actor.html">Actor</a> &amp;actor) const</td></tr>
<tr class="memdesc:a39c190a92cdff0b0a0f02b0cb3ee7235"><td class="mdescLeft">&#160;</td><td class="mdescRight">角色是否站在物体上方  <a href="class_base_object.html#a39c190a92cdff0b0a0f02b0cb3ee7235">更多...</a><br /></td></tr>
<tr class="separator:a39c190a92cdff0b0a0f02b0cb3ee7235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac243a7f83f8a6ac699ba521e9cc136b5"><td class="memItemLeft" align="right" valign="top"><a id="ac243a7f83f8a6ac699ba521e9cc136b5" name="ac243a7f83f8a6ac699ba521e9cc136b5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> ()</td></tr>
<tr class="memdesc:ac243a7f83f8a6ac699ba521e9cc136b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动函数，承载角色的逻辑由场景执行 <br /></td></tr>
<tr class="separator:ac243a7f83f8a6ac699ba521e9cc136b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c078a1ace9b004fb63a1ce73dd38474"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a9c078a1ace9b004fb63a1ce73dd38474">setPath</a> (const std::vector&lt; PointAndTime &gt; &amp;points)</td></tr>
<tr class="memdesc:a9c078a1ace9b004fb63a1ce73dd38474"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置路径，具有移动功能的类必须调用此函数  <a href="class_base_object.html#a9c078a1ace9b004fb63a1ce73dd38474">更多...</a><br /></td></tr>
<tr class="separator:a9c078a1ace9b004fb63a1ce73dd38474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ad52a6ad68a6fa37707e4b95da209be"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a9ad52a6ad68a6fa37707e4b95da209be">getId</a> () const</td></tr>
<tr class="memdesc:a9ad52a6ad68a6fa37707e4b95da209be"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取物体id，方便场景管理  <a href="class_base_object.html#a9ad52a6ad68a6fa37707e4b95da209be">更多...</a><br /></td></tr>
<tr class="separator:a9ad52a6ad68a6fa37707e4b95da209be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2f96304fd2dfe3bf450c7b63da6b470"><td class="memItemLeft" align="right" valign="top"><a id="ad2f96304fd2dfe3bf450c7b63da6b470" name="ad2f96304fd2dfe3bf450c7b63da6b470"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseObject</b> (const <a class="el" href="class_base_object.html">BaseObject</a> &amp;)</td></tr>
<tr class="memdesc:ad2f96304fd2dfe3bf450c7b63da6b470"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝构造，拷贝的新对象会拥有不同id <br /></td></tr>
<tr class="separator:ad2f96304fd2dfe3bf450c7b63da6b470"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3450a7ef7956a57567ddcd45fab9f533"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a3450a7ef7956a57567ddcd45fab9f533">setId</a> (const std::string &amp;id_)</td></tr>
<tr class="memdesc:a3450a7ef7956a57567ddcd45fab9f533"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置物体id，警告，必须保证全局唯一性  <a href="class_base_object.html#a3450a7ef7956a57567ddcd45fab9f533">更多...</a><br /></td></tr>
<tr class="separator:a3450a7ef7956a57567ddcd45fab9f533"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefa85cf42a5b6864d5c4911694c9b38e"><td class="memItemLeft" align="right" valign="top"><a id="aefa85cf42a5b6864d5c4911694c9b38e" name="aefa85cf42a5b6864d5c4911694c9b38e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseObject</b> (const <a class="el" href="class_point.html">Point</a> &amp;<a class="el" href="class_base_object.html#ad2b90ee5793b658f19945f5ed8252bfe">pos</a>, double <a class="el" href="class_base_object.html#a345ddf24dd642359b75ec9e8cbec24b2">width</a>, double height, bool <a class="el" href="class_base_object.html#acc5d2f48b26c6fef8d7bcf0c8194c2da">fixed</a>, bool <a class="el" href="class_base_object.html#ad3518dc3b4c964b4aa3417d72cdb2620">can_go_through</a>, bool <a class="el" href="class_base_object.html#aed57694880d2f2f972012200f734f0d4">can_climb</a>)</td></tr>
<tr class="separator:aefa85cf42a5b6864d5c4911694c9b38e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9764d0d8a511d6d5f68a2d4acc811572"><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#a9764d0d8a511d6d5f68a2d4acc811572">getClassName</a> ()</td></tr>
<tr class="memdesc:a9764d0d8a511d6d5f68a2d4acc811572"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取类名  <a href="class_base_object.html#a9764d0d8a511d6d5f68a2d4acc811572">更多...</a><br /></td></tr>
<tr class="separator:a9764d0d8a511d6d5f68a2d4acc811572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea1a2bbace51c82664d5ce64b23d95c3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_object.html#aea1a2bbace51c82664d5ce64b23d95c3">draw</a> (const <a class="el" href="class_point.html">Point</a> &amp;show_pos, float window_width, float window_height) const =0</td></tr>
<tr class="memdesc:aea1a2bbace51c82664d5ce64b23d95c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">供前端使用的绘制函数  <a href="class_base_object.html#aea1a2bbace51c82664d5ce64b23d95c3">更多...</a><br /></td></tr>
<tr class="separator:aea1a2bbace51c82664d5ce64b23d95c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a2fc71ba7e6b9c65e86ef8e44a44cc29f"><td class="memItemLeft" align="right" valign="top"><a id="a2fc71ba7e6b9c65e86ef8e44a44cc29f" name="a2fc71ba7e6b9c65e86ef8e44a44cc29f"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>id</b></td></tr>
<tr class="memdesc:a2fc71ba7e6b9c65e86ef8e44a44cc29f"><td class="mdescLeft">&#160;</td><td class="mdescRight">物体id，全局唯一 <br /></td></tr>
<tr class="separator:a2fc71ba7e6b9c65e86ef8e44a44cc29f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ac499b5c6e520eeecdf8e9ae7beae6a"><td class="memItemLeft" align="right" valign="top"><a id="a7ac499b5c6e520eeecdf8e9ae7beae6a" name="a7ac499b5c6e520eeecdf8e9ae7beae6a"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>className</b> = &quot;BaseObject&quot;</td></tr>
<tr class="memdesc:a7ac499b5c6e520eeecdf8e9ae7beae6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">类名 <br /></td></tr>
<tr class="separator:a7ac499b5c6e520eeecdf8e9ae7beae6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2b90ee5793b658f19945f5ed8252bfe"><td class="memItemLeft" align="right" valign="top"><a id="ad2b90ee5793b658f19945f5ed8252bfe" name="ad2b90ee5793b658f19945f5ed8252bfe"></a>
<a class="el" href="class_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>pos</b></td></tr>
<tr class="memdesc:ad2b90ee5793b658f19945f5ed8252bfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">物体位置 <br /></td></tr>
<tr class="separator:ad2b90ee5793b658f19945f5ed8252bfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc5d2f48b26c6fef8d7bcf0c8194c2da"><td class="memItemLeft" align="right" valign="top"><a id="acc5d2f48b26c6fef8d7bcf0c8194c2da" name="acc5d2f48b26c6fef8d7bcf0c8194c2da"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>fixed</b></td></tr>
<tr class="memdesc:acc5d2f48b26c6fef8d7bcf0c8194c2da"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否固定物 <br /></td></tr>
<tr class="separator:acc5d2f48b26c6fef8d7bcf0c8194c2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a345ddf24dd642359b75ec9e8cbec24b2"><td class="memItemLeft" align="right" valign="top"><a id="a345ddf24dd642359b75ec9e8cbec24b2" name="a345ddf24dd642359b75ec9e8cbec24b2"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>width</b></td></tr>
<tr class="memdesc:a345ddf24dd642359b75ec9e8cbec24b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">物体长宽 <br /></td></tr>
<tr class="separator:a345ddf24dd642359b75ec9e8cbec24b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44bc1715aac8ab06b6965fbe566806e2"><td class="memItemLeft" align="right" valign="top"><a id="a44bc1715aac8ab06b6965fbe566806e2" name="a44bc1715aac8ab06b6965fbe566806e2"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>height</b></td></tr>
<tr class="separator:a44bc1715aac8ab06b6965fbe566806e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3518dc3b4c964b4aa3417d72cdb2620"><td class="memItemLeft" align="right" valign="top"><a id="ad3518dc3b4c964b4aa3417d72cdb2620" name="ad3518dc3b4c964b4aa3417d72cdb2620"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>can_go_through</b></td></tr>
<tr class="memdesc:ad3518dc3b4c964b4aa3417d72cdb2620"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否可以穿过 <br /></td></tr>
<tr class="separator:ad3518dc3b4c964b4aa3417d72cdb2620"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed57694880d2f2f972012200f734f0d4"><td class="memItemLeft" align="right" valign="top"><a id="aed57694880d2f2f972012200f734f0d4" name="aed57694880d2f2f972012200f734f0d4"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>can_climb</b></td></tr>
<tr class="memdesc:aed57694880d2f2f972012200f734f0d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否可以攀爬 <br /></td></tr>
<tr class="separator:aed57694880d2f2f972012200f734f0d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6a137a05e4cc941d0d208f7e43d3e55"><td class="memItemLeft" align="right" valign="top"><a id="ae6a137a05e4cc941d0d208f7e43d3e55" name="ae6a137a05e4cc941d0d208f7e43d3e55"></a>
std::deque&lt; PointAndTime &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>path</b></td></tr>
<tr class="memdesc:ae6a137a05e4cc941d0d208f7e43d3e55"><td class="mdescLeft">&#160;</td><td class="mdescRight">可移动物体的移动路径 <br /></td></tr>
<tr class="separator:ae6a137a05e4cc941d0d208f7e43d3e55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0a7ee2cbc8d7cf908e511a50b412777"><td class="memItemLeft" align="right" valign="top"><a id="af0a7ee2cbc8d7cf908e511a50b412777" name="af0a7ee2cbc8d7cf908e511a50b412777"></a>
std::deque&lt; PointAndTime &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>pre</b></td></tr>
<tr class="memdesc:af0a7ee2cbc8d7cf908e511a50b412777"><td class="mdescLeft">&#160;</td><td class="mdescRight">当前正在移动的前一个位置和下一个位置,方便move函数使用 <br /></td></tr>
<tr class="separator:af0a7ee2cbc8d7cf908e511a50b412777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acade8159e3c1c3e2a84bdc67e9a02976"><td class="memItemLeft" align="right" valign="top"><a id="acade8159e3c1c3e2a84bdc67e9a02976" name="acade8159e3c1c3e2a84bdc67e9a02976"></a>
std::deque&lt; PointAndTime &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>next</b></td></tr>
<tr class="separator:acade8159e3c1c3e2a84bdc67e9a02976"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acea9e6ec0461a1e4643367f600543be7"><td class="memItemLeft" align="right" valign="top"><a id="acea9e6ec0461a1e4643367f600543be7" name="acea9e6ec0461a1e4643367f600543be7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>waiting_time_remain</b> = 0</td></tr>
<tr class="memdesc:acea9e6ec0461a1e4643367f600543be7"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动路径点等待时长，单位：帧 <br /></td></tr>
<tr class="separator:acea9e6ec0461a1e4643367f600543be7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaad2d283f2c18ec6fa5ca51672971ea"><td class="memItemLeft" align="right" valign="top"><a id="acaad2d283f2c18ec6fa5ca51672971ea" name="acaad2d283f2c18ec6fa5ca51672971ea"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>move_speed</b> {}</td></tr>
<tr class="memdesc:acaad2d283f2c18ec6fa5ca51672971ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动的速度，每帧恒定，单位：像素/帧 <br /></td></tr>
<tr class="separator:acaad2d283f2c18ec6fa5ca51672971ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >场景内物体基类 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aea1a2bbace51c82664d5ce64b23d95c3" name="aea1a2bbace51c82664d5ce64b23d95c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea1a2bbace51c82664d5ce64b23d95c3">&#9670;&nbsp;</a></span>draw()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void BaseObject::draw </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>show_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>供前端使用的绘制函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_pos</td><td></td></tr>
    <tr><td class="paramname">window_width</td><td></td></tr>
    <tr><td class="paramname">window_height</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="class_base_movable_object.html#aed46f185b924255db365b99080dd22c4">BaseMovableObject</a>, <a class="el" href="class_behind_bridge.html#ae718c374bfaf9b187fb144e881d50044">BehindBridge</a>, <a class="el" href="class_brick.html#a957ae2212e4d6c76277b2a8bb0b982a8">Brick</a>, <a class="el" href="class_door.html#ac10dbc530bd2d01e8985dfffc1cc8c7d">Door</a>, <a class="el" href="class_drop_object.html#a0c126800326518f92a1a27a592202e99">DropObject</a>, <a class="el" href="class_front_bridge.html#aeb48fe3972ae4c2857ebac5ab8dd5019">FrontBridge</a>, <a class="el" href="class_ladder.html#ad2a76df9de9db290ca5311f722b84ec8">Ladder</a>, <a class="el" href="class_barrel.html#a5a3b05e448e59f64b6118601ebbff947">Barrel</a>, <a class="el" href="class_billboard.html#aa881708f3b3a65f4681564edc9f24c14">Billboard</a>, <a class="el" href="class_box.html#a0146a18438663204bde3920f8e1e3735">Box</a>, <a class="el" href="class_casket.html#a6570df24d6259094b6fecb558369ea85">Casket</a>, <a class="el" href="class_grave_stone.html#aa6dd84ece868e8a3cb4fac4ec737a5ff">GraveStone</a>, <a class="el" href="class_plant.html#ac38bb958f543840a61b050cf8b9e5573">Plant</a>, <a class="el" href="class_pot.html#a9ccf0ee104889c8b45c46e65963831dc">Pot</a>, <a class="el" href="class_skeleton.html#a0feab84a2819619d6f8c335e7b61d0ea">Skeleton</a> , 以及 <a class="el" href="class_stone.html#af74bdeb2ff0778ce103efde2b410b224">Stone</a> 内被实现.</p>

</div>
</div>
<a id="a9764d0d8a511d6d5f68a2d4acc811572" name="a9764d0d8a511d6d5f68a2d4acc811572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9764d0d8a511d6d5f68a2d4acc811572">&#9670;&nbsp;</a></span>getClassName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; BaseObject::getClassName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取类名 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p>被 <a class="el" href="class_base_movable_object.html#a0988dd1fe8a2485d3cf705e0b9116a81">BaseMovableObject</a>, <a class="el" href="class_behind_bridge.html#aa0cae3abdfc36750b7dca3843f904167">BehindBridge</a>, <a class="el" href="class_brick.html#aa2df0663a49e31cd422282e2a90edc16">Brick</a>, <a class="el" href="class_door.html#a6a02352e2c2c86a4e26970281488b9f7">Door</a>, <a class="el" href="class_drop_object.html#a21684898698289c6a66ede204e5baae1">DropObject</a>, <a class="el" href="class_front_bridge.html#a090d960387cd5953c138e462fd3d887e">FrontBridge</a>, <a class="el" href="class_ladder.html#a2997b81bfa06471d0b24a0a29d6b8e4e">Ladder</a>, <a class="el" href="class_barrel.html#a2e98aff1f078e2efa3928492570af948">Barrel</a>, <a class="el" href="class_billboard.html#a35e1338fac0ab12b83ad9c4bcd1ad750">Billboard</a>, <a class="el" href="class_box.html#ae7c91981db1045b20cd58b2cab1d9a60">Box</a>, <a class="el" href="class_casket.html#a8bc6320e4d28fa3b93893da86398f21a">Casket</a>, <a class="el" href="class_grave_stone.html#a69c8ea5dbbd7d3f614d9d8813c062f7b">GraveStone</a>, <a class="el" href="class_plant.html#a555675b3a29092d4419d70ff61341ca8">Plant</a>, <a class="el" href="class_pot.html#a26eea262c09dee520f312d89d418c0d2">Pot</a>, <a class="el" href="class_skeleton.html#af9ba1281e6c189a3b1b6afb78ae3af09">Skeleton</a> , 以及 <a class="el" href="class_stone.html#ab3121080562b96ca3959e28b29a331a4">Stone</a> 重载.</p>

</div>
</div>
<a id="a90bc7e758fa62359c6e0784415bf3095" name="a90bc7e758fa62359c6e0784415bf3095"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90bc7e758fa62359c6e0784415bf3095">&#9670;&nbsp;</a></span>getHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double BaseObject::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体高度，单位：像素 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a9ad52a6ad68a6fa37707e4b95da209be" name="a9ad52a6ad68a6fa37707e4b95da209be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ad52a6ad68a6fa37707e4b95da209be">&#9670;&nbsp;</a></span>getId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; BaseObject::getId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体id，方便场景管理 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a0b678f52f9f6e06c237a22715fa4331e" name="a0b678f52f9f6e06c237a22715fa4331e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b678f52f9f6e06c237a22715fa4331e">&#9670;&nbsp;</a></span>getMoveSpeed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double BaseObject::getMoveSpeed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体的移动速度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a7e176d1d960045fc200077eca43965e5" name="a7e176d1d960045fc200077eca43965e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e176d1d960045fc200077eca43965e5">&#9670;&nbsp;</a></span>getPos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_point.html">Point</a> &amp; BaseObject::getPos </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体位置 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_object_a7e176d1d960045fc200077eca43965e5_icgraph.png" border="0" usemap="#aclass_base_object_a7e176d1d960045fc200077eca43965e5_icgraph" alt=""/></div>
<map name="aclass_base_object_a7e176d1d960045fc200077eca43965e5_icgraph" id="aclass_base_object_a7e176d1d960045fc200077eca43965e5_icgraph">
<area shape="rect" title="获取物体位置" alt="" coords="192,5,331,32"/>
<area shape="rect" href="class_mob_a_i.html#a56b35ba83947d6699050a5a29d27e3c7" title="控制怪物在单一砖块上巡逻" alt="" coords="5,5,144,32"/>
</map>
</div>

</div>
</div>
<a id="aa6b51f6eda42de15bbcf9b0c4fb1db51" name="aa6b51f6eda42de15bbcf9b0c4fb1db51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6b51f6eda42de15bbcf9b0c4fb1db51">&#9670;&nbsp;</a></span>getWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double BaseObject::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体宽度，单位:像素 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_object_aa6b51f6eda42de15bbcf9b0c4fb1db51_icgraph.png" border="0" usemap="#aclass_base_object_aa6b51f6eda42de15bbcf9b0c4fb1db51_icgraph" alt=""/></div>
<map name="aclass_base_object_aa6b51f6eda42de15bbcf9b0c4fb1db51_icgraph" id="aclass_base_object_aa6b51f6eda42de15bbcf9b0c4fb1db51_icgraph">
<area shape="rect" title="获取物体宽度，单位:像素" alt="" coords="192,5,343,32"/>
<area shape="rect" href="class_mob_a_i.html#a56b35ba83947d6699050a5a29d27e3c7" title="控制怪物在单一砖块上巡逻" alt="" coords="5,5,144,32"/>
</map>
</div>

</div>
</div>
<a id="a39c190a92cdff0b0a0f02b0cb3ee7235" name="a39c190a92cdff0b0a0f02b0cb3ee7235"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39c190a92cdff0b0a0f02b0cb3ee7235">&#9670;&nbsp;</a></span>isActorOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BaseObject::isActorOn </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_actor.html">Actor</a> &amp;&#160;</td>
          <td class="paramname"><em>actor</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>角色是否站在物体上方 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">actor</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_object_a39c190a92cdff0b0a0f02b0cb3ee7235_cgraph.png" border="0" usemap="#aclass_base_object_a39c190a92cdff0b0a0f02b0cb3ee7235_cgraph" alt=""/></div>
<map name="aclass_base_object_a39c190a92cdff0b0a0f02b0cb3ee7235_cgraph" id="aclass_base_object_a39c190a92cdff0b0a0f02b0cb3ee7235_cgraph">
<area shape="rect" title="角色是否站在物体上方" alt="" coords="5,56,161,83"/>
<area shape="rect" href="class_actor.html#a209f3ce85bf183ac91f637a523308211" title="获取高度" alt="" coords="209,5,325,32"/>
<area shape="rect" href="class_actor.html#a2dea4d3df5f9ad75038fee99e820f2e7" title="获取位置" alt="" coords="216,56,319,83"/>
<area shape="rect" href="class_actor.html#a3b8f6189dfcbd3f5efd9d6437ff2a47e" title="获取宽度" alt="" coords="211,107,324,133"/>
</map>
</div>

</div>
</div>
<a id="a11bb79be3c9bbe90709cbdcffa75d91e" name="a11bb79be3c9bbe90709cbdcffa75d91e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11bb79be3c9bbe90709cbdcffa75d91e">&#9670;&nbsp;</a></span>isCanClimb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BaseObject::isCanClimb </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体是否可以攀爬，此属性必须在可以穿过时启用才有效 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ae27aa8d7730816c3b92844fa52e4a002" name="ae27aa8d7730816c3b92844fa52e4a002"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae27aa8d7730816c3b92844fa52e4a002">&#9670;&nbsp;</a></span>isCanGoThrough()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BaseObject::isCanGoThrough </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体是否可以穿过 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a35b5ede527bbd73c579d8bdbfb90bee9" name="a35b5ede527bbd73c579d8bdbfb90bee9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35b5ede527bbd73c579d8bdbfb90bee9">&#9670;&nbsp;</a></span>isFixed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BaseObject::isFixed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取物体是否固定 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ad8782191bbcc265334390051b3efacbe" name="ad8782191bbcc265334390051b3efacbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8782191bbcc265334390051b3efacbe">&#9670;&nbsp;</a></span>setCanClimb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setCanClimb </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>canClimb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体是否可以攀爬，此属性必须在可以穿过时启用才有效 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a5d5f8d904178f4af4e3ded503d364f94" name="a5d5f8d904178f4af4e3ded503d364f94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d5f8d904178f4af4e3ded503d364f94">&#9670;&nbsp;</a></span>setCanGoThrough()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setCanGoThrough </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>canGoThrough</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体是否可以穿过 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">canGoThrough</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1baacb32f3f4e0481a46266fc3dfbbfc" name="a1baacb32f3f4e0481a46266fc3dfbbfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1baacb32f3f4e0481a46266fc3dfbbfc">&#9670;&nbsp;</a></span>setFixed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setFixed </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fixed_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体是否固定 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fixed_</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad748705eb9028d3f81c76828d072ac6d" name="ad748705eb9028d3f81c76828d072ac6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad748705eb9028d3f81c76828d072ac6d">&#9670;&nbsp;</a></span>setHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setHeight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体高度，单位：像素 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">height_</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3450a7ef7956a57567ddcd45fab9f533" name="a3450a7ef7956a57567ddcd45fab9f533"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3450a7ef7956a57567ddcd45fab9f533">&#9670;&nbsp;</a></span>setId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setId </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>id_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体id，警告，必须保证全局唯一性 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">id_</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a086ae2aee1a4243e68db93ff801018ca" name="a086ae2aee1a4243e68db93ff801018ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a086ae2aee1a4243e68db93ff801018ca">&#9670;&nbsp;</a></span>setMoveSpeed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setMoveSpeed </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>moveSpeed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体的移动速度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a9c078a1ace9b004fb63a1ce73dd38474" name="a9c078a1ace9b004fb63a1ce73dd38474"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c078a1ace9b004fb63a1ce73dd38474">&#9670;&nbsp;</a></span>setPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setPath </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; PointAndTime &gt; &amp;&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置路径，具有移动功能的类必须调用此函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">points</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a85204616ebfb2ba858abde26f203d359" name="a85204616ebfb2ba858abde26f203d359"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85204616ebfb2ba858abde26f203d359">&#9670;&nbsp;</a></span>setPos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setPos </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>pos_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >设置物体位置 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos_</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3a47258298e3f5d0c63a516c11249d5e" name="a3a47258298e3f5d0c63a516c11249d5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a47258298e3f5d0c63a516c11249d5e">&#9670;&nbsp;</a></span>setWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseObject::setWidth </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width_</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置物体宽度，单位：像素 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width_</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/Objects/<a class="el" href="_base_object_8h_source.html">BaseObject.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/Objects/BaseObject.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
